import instance from "@/utils/request";

export async function getLogin(param: any, uuid: any) {
  const { username, password, code } = param;
  const data = {
    username,
    password,
    code,
    uuid,
  };
  return await instance("/login", {
    method: "POST",
    data: data,
  });
}

export async function getLoginOut() {
  return await instance("/captchaImage", {
    method: "GET",
  });
}

export async function getLoginInfo() {
  return await instance("/getInfo", {
    method: "GET",
  });
}
